Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use spaceapi-kt for parsing, add v14 support #85

Closed
wants to merge 5 commits into from

Conversation

dbrgn
Copy link
Contributor

@dbrgn dbrgn commented Nov 23, 2020

As suggested in #84, I replaced the old parser with a spaceapi-kt. This drops v0.12 support but adds v14 support. (There are only 8 spaces left with a v0.12 endpoint. They should upgrade.)

Besides replacing the parser and the HashMap based data management, the whole layout setup code was also refactored. A few helpers were added to make the code a bit cleaner. I also added support for unit testing.

The widget compiles and can be added to the home screen, but currently it doesn't seem to work on Android 11. However, as far as I can tell, it did not work previously either. Probably some APIs changed.

Some translation strings are still missing. I updated EN and DE (and merged in #82 afterwards).

Size impact: Release APK size increased from 71 KiB to 765 KiB. But I think that's still perfectly fine 🙂

Fixes #84. Fixes #78. Replaces #80. Replaces #83. Replaces #82.

PS: If you need help with maintaining this app, I'll happily help out! It would also be an option to transfer the repo to https://github.com/spaceapi-community/ for better shared maintenance.

dbrgn and others added 4 commits November 15, 2020 00:17
I hope this makes it a bit easier to read :)
Besides replacing the JSON / HashMap based parser, the whole layout
setup code was also refactored. A few helpers were added to make the
code a bit cleaner.

The widget can be added but currently doesn't seem to work on Android
11. However, as far as I know, it did not work previously either.
Probably some APIs changed.
Co-authored-by: Matthias Jacob <[email protected]>
This allows landing PRs and releases even if not all translation files
are up to date. (If a string is missing, the english string is used as
fallback. That's fine, translations should be done on a best-effort
basis.)
@dbrgn dbrgn changed the title Replace parser classes with spaceapi-kt based parsing Use spaceapi-kt for parsing, add v14 support Nov 23, 2020
dbrgn added a commit to spaceapi-community/my-hackerspace that referenced this pull request Feb 7, 2021
@dbrgn
Copy link
Contributor Author

dbrgn commented Feb 7, 2021

I forked to https://github.com/spaceapi-community/my-hackerspace and merged the branch there.

@dbrgn dbrgn closed this Feb 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

API v14 / New Parser Library / Kotlin Long sensor descriptions overlapping with sensor location
1 participant